package com.queue.server.config;

import com.queue.server.util.SnowflakeIdUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "mini-msg-queue.storage")
public class MqServerConfig {
    private String type;

    public SnowflakeIdUtils snowflakeIdUtils(){
        return new SnowflakeIdUtils(9,12);
    }
}
